import request from "@/utils/request.ts";


/**
 * 获取所有头像边框
 */
export function getAvatarBorderListUrl(){
    return request({
        url: '/blog/avatar_border/list',
        method: 'get',
    })
}

/**
 * 新增头像边框
 * @param data
 */
export function addAvatarBorderUrl(data: any){
    return request({
        url: '/blog/avatar_border/add',
        method: 'post',
        data: data
    })
}

/**
 * 修改
 * @param data
 *
 */
export function updateAvatarBorderUrl(data: any){
    return request({
        url: '/blog/avatar_border/update',
        method: 'PUT',
        data: data
    })
}

/**
 * 删除头像边框
 * @param data
 */
export function deleteAvatarBorderUrl(data: any){
    return request({
        url: '/blog/avatar_border/delete',
        method: 'DELETE',
        data: data
    })
}

/**
 * 同步文件系统 和 url
 */
export function syncAvatarBorderUrl(){
    return request({
        url: '/blog/avatar_border/sync',
        method: 'POST',
    })
}

/**
 * 获取所有可用使用的头像边框
 */
export function getAllAvatarBorderListUrl(){
    return request({
        url: '/blog/avatar_border/all',
        method: 'get',
    })
}
